package com.wcg.javabean;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class User {
    private int id;
    private String email;
    private String username;
    private String password;
    private String phoneNum;
    private int status;
    private Role r;

    public String getStatusStr() {
        if (status == 0){
            return "未开启";
        }else {
            return "已开启";
        }
    }
    //'状态0 未开启 1 开启',
}